package com.qf.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qf.entity.Order;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;

public interface OrderMapper extends BaseMapper<Order> {

    @Insert("insert into t_order_${tabIndex} (id,uid) values (#{order.id},#{order.uid})")
    int addOrder(@Param("order") Order order, @Param("tabIndex") Integer tabIndex);

    @Insert("insert into t_order_${tabIndex} (id,uid) values (#{order.id},#{order.uid})")
    int addOrder2(@Param("order") Order order, @Param("tabIndex") Integer tabIndex);
}
